package com.service.impl;

import com.bean.Goods;
import com.bean.Page;
import com.dao.GoodsDao;
import com.dao.impl.GoodsDaoImpl;

public class GoodsServiceImpl implements com.service.GoodsService {
	GoodsDao gd = new GoodsDaoImpl();
	@Override
	public Page<Goods> seleGoods(int pageSize, int pageNum) {
		return new Page<Goods>(gd.selectGoods(pageNum, pageSize), pageNum, pageSize, gd.selectAllGoodsNum());
	}
	@Override
	public int deleGoods(int goodsId) {
		return gd.deleGoods(goodsId);
	}

}
